package com.ruoyi.sywx.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 舆情业务对象 sywx_yq
 *
 * @author ruoyi
 * @date 2024-01-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SywxYqBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 发帖人id
     */
    private Long posterId;

    /**
     * 发生日期
     */
    @NotNull(message = "发生日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date occurDate;

    /**
     * 舆情等级
     */
    @NotBlank(message = "舆情等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String level;

    /**
     * 舆情内容
     */
    @NotBlank(message = "舆情内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 舆情链接
     */
    @NotBlank(message = "舆情链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 舆情类型
     */
    @NotBlank(message = "舆情类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    private String annex;

    private String feedback;

    @NotEmpty(message = "涉情单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<Long> yqUnit;

    private List<Long> yqPoster;

    private String sjfxType;
}
